package model.Shapes 
{
	import model.ArrayBuilder;
	import model.Point;
	/**
	 * ...
	 * @author Yang Wang
	 */
	public class ShapeT extends TetrisShape
	{
		
		public function ShapeT() 
		{
			m_color = 0x900090; //purple
			
			var ab:ArrayBuilder = new ArrayBuilder();
			
			m_states = new Array();
			m_states[0] = ab.build2DArray(3, 3);
			
			m_states[0][1][0] = true;
			m_states[0][1][1] = true;
			m_states[0][1][2] = true;
			m_states[0][2][1] = true;
			
			var pivot: Point = new Point(1, 1);
			m_states[1] = this.rotatePoints(m_states[0], pivot);
			m_states[2] = this.rotatePoints(m_states[1], pivot);
			m_states[3] = this.rotatePoints(m_states[2], pivot);
			
		}
		
		
	}

}